#include<bits/stdc++.h>

using namespace std;

class Solution {
public:
    string dynamicPassword(string password, int target) {
        string cut = password.substr(0, target);
        password.erase(0, target);
        password.append(cut);

        return password;
    }
};